<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<title>设置类型</title>
	<meta charset="utf-8">
	<th:block th:include="include :: header('commonFiles')" />
	<style type="text/css">
		html,body{
			width: 100%;
			height: 100%;
		}
		 .layui-elem-field{
		 	height: 85%;
		 }
		.header{
			padding: 10px 0px;
		}
		.mybtn{
			margin-left: 25%;
		}
	</style>
</head>
<body>

<div>&nbsp;</div>

<fieldset class="layui-elem-field">
	<legend>分类设置</legend>
	<div class="layui-field-box">
	
		<form class="layui-form myform">
			<input type="hidden" id="id" name="id" th:value="${id}"/>
			
			<div class="layui-form-item">
			    <label class="layui-form-label">类别</label>
			    <div class="layui-input-block">
				    <select name="articleType" id="articleType">
				    </select>
			    </div>
			</div>
			
			<div class="layui-row mybtn">
				<button type="button" class="layui-btn" onclick="save()">保存</button>
				<button type="button" class="layui-btn layui-btn-primary" onclick="toBack()">返回</button>
			</div>
		</form>
		
	</div>
</fieldset>
	
<!-- th:inline="none" 双数组符号一起使用，在thymeleaf被认为是内联表达式,所以渲染错误，添加了th:inline="none"可以防止该问题 -->
<script type="text/javascript" th:inline="none" th:src="@{/js/article/addType.js}"></script>
</body>
</html>